package cc.sbootd2.sbootd2web.service.impl;

import org.springframework.stereotype.Service;
import cc.sbootd2.sbootd2web.dao.UserMapper;
import cc.sbootd2.sbootd2web.pojo.User;
import cc.sbootd2.sbootd2web.service.UserService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;



    @Override
    public User getOneUser(int id) {

        return userMapper.getOneUser(id);
    }

    @Override
    public    List<User> getUserList1() {
        return userMapper.getUserList1();
    }

    @Override
    public List<User> getUserList2(String userName) {
        return userMapper.getUserList2(userName);
    }

    @Override
    public List<User> getUserList3(String userCode, String userName) {
        return userMapper.getUserList3(userCode,userName);
    }

    @Override
    public List<User> getUserList4(Map<String, Object> map) {
        return null;
    }

    @Override
    public List<User> getUserList5(User user) {
        return null;
    }

    @Override
    public List<User> getUsersAndRoleNames() {
        return null;
    }

    @Override
    public int save(User user) {


        return userMapper.save(user);
    }

    @Override
    public int update(User user) {
        return 0;
    }

    @Override
    public int update2(User user) {
        return 0;
    }

    @Override
    public int delete(int id) {
        return 0;
    }

    /**
     * 获得 所有的 用户信息以及其角色信息
     *
     * @return
     */
    @Override
    public List<User> getAllUserList() {
        return null;
    }

    @Override
    public List<User> getAllUserAndAddress() {
        return null;
    }

    @Override
    public List<User> getUserList6(User user) {
        return null;
    }

    @Override
    public List<User> getUserList7(User user) {
        return null;
    }

    @Override
    public List<User> getUserList8(User user) {
        return null;
    }

    @Override
    public List<User> getUsersByIds(Integer[] ids) {
        return null;
    }

    @Override
    public List<User> getUsersByIdList(List<Integer> ids) {
        return null;
    }

    @Override
    public List<User> getUsersByIdListAndGender(Map<String, Object> map) {
        return null;
    }

    @Override
    public User getUserByUserCode(String userCode) {
        return userMapper.getUserByUserCode(userCode);
    }
}
